package cn.huixh.blindbox.exception.impl;

import cn.huixh.blindbox.exception.BaseErrorInfoInterface;
import cn.huixh.blindbox.exception.BaseException;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author huixh
 * @version 1.0
 * @date 2022/5/7 20:50
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BizException extends BaseException {

    private static final long serialVersionUID = 775030535129956928L;

    public BizException() {
    }

    public BizException(String message) {
        super(message);
    }

    public BizException(Integer errorCode, String errorMsg) {
        super(errorCode, errorMsg);
    }

    public BizException(Integer errorCode, String errorMsg, Throwable cause) {
        super(errorCode, errorMsg, cause);
    }

    public BizException(BaseErrorInfoInterface errorInfoInterface) {
        super(errorInfoInterface);
    }

    public BizException(BaseErrorInfoInterface errorInfoInterface, Throwable cause) {
        super(errorInfoInterface, cause);
    }
}
